﻿using MyWeb.Common.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyWeb.Commin.Tests.Helper
{
    [TestClass]
    public class Base64
    {
        [TestMethod]
        public void Init()
        {
            Base64Helper base64 = new Base64Helper();

            Console.WriteLine(base64.Base64Encode("Data Source=172.23.192.1;Initial Catalog=WMBLOG_MSSQL_1;User ID=sa;Password=123456;Integrated Security=True"));
            Console.WriteLine(base64.Base64Encode("Data Source=127.0.0.1;Initial Catalog=WMBLOG_MSSQL_1;User ID=sa;Password=123456"));
            Console.WriteLine(base64.Base64Decode("RGF0YSBTb3VyY2U9MTcyLjIzLjE5Mi4xO0luaXRpYWwgQ2F0YWxvZz1XTUJMT0dfTVNTUUxfMTtVc2VyIElEPXNhO1Bhc3N3b3JkPTEyMzQ1NjtJbnRlZ3JhdGVkIFNlY3VyaXR5PVRydWU="));
        }
    }
}
